package me.mingshan.leetcode;

/**
 * @author hanjuntao
 * @date 2025/5/30 0030
 */
public class GuessGame {

    private int pick;
    int guess(int num) {
        if (num > pick) {
            return -1;
        } else if (num < pick) {
            return 1;
        }
        return 0;
    }

    public void setPick(int pick) {
        this.pick = pick;
    }
}
